import request from '@/utils/request'

// 查询每日行程列表
export function listDailyItinerary(query) {
  return request({
    url: '/manage/DailyItinerary/list',
    method: 'get',
    params: query
  })
}

// 查询每日行程详细
export function getDailyItinerary(id) {
  return request({
    url: '/manage/DailyItinerary/' + id,
    method: 'get'
  })
}

// 新增每日行程
export function addDailyItinerary(data) {
  return request({
    url: '/manage/DailyItinerary',
    method: 'post',
    data: data
  })
}

// 修改每日行程
export function updateDailyItinerary(data) {
  return request({
    url: '/manage/DailyItinerary',
    method: 'put',
    data: data
  })
}

// 删除每日行程
export function delDailyItinerary(id) {
  return request({
    url: '/manage/DailyItinerary/' + id,
    method: 'delete'
  })
}
